<?php
// Copyright 2019 Hackware SpA <human@hackware.cl>
// This file is part of "Hackware Web Services Wallet" and licensed under
// the terms of the GNU Affero General Public License version 3, or (at your
// option) a later version. You should have received a copy of this license
// along with the software. If not, see <https://www.gnu.org/licenses/>.

app('router')->group(
    ['namespace' => 'Hawese\Wallet\Http\Controllers'],
    function ($router) {
        $router->get('/wallets/{user_uid}', 'WalletController@show');
        $router->get('/wallets', 'WalletController@index');
        $router->post('/wallets', 'WalletController@store');
        $router->post('/transactions', 'TransactionController@store');
        $router->get('/transactions', 'TransactionController@index');
        $router->get('/currencies', 'CurrencyController@index');
        $router->get('/currencies/{idOrCode}', 'CurrencyController@show');
    }
);
